Package com.cisco.pt.ipc.system
Interface TreeNode
- All Superinterfaces:
IPCObject
- All Known Implementing Classes:
TreeNodeImpl
Information provided by the PKI file:
\class TreeNode
\brief TreeNode handles and manipulates the activity assessment nodes.
\example appWindow().getActiveFile().getLastAssessedComparatorTree()
- Author:
- Auto-generated
-
Method Summary
Modifier and TypeMethodDescriptionaddChildNode(ComparatorClass classType, String nodeName, String nodeId, String nodeValue, boolean bVariableEnabled) Information provided by the PKI file:intInformation provided by the PKI file:intgetCheckLeafCountByComponent(String component) Information provided by the PKI file:intInformation provided by the PKI file:intgetCheckLeafPointsByComponent(String component) Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:intInformation provided by the PKI file:getChildNodeAt(int index) Information provided by the PKI file:getChildNodeBy(String id) Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:intInformation provided by the PKI file:intgetLeafCountByComponent(String component) Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:intInformation provided by the PKI file:intgetTotalLeafPointsByComponent(String component) Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:booleanInformation provided by the PKI file:voidsetCheck(boolean bCheck) Information provided by the PKI file:voidsetIncorrectFeedback(String feedbackStr) Information provided by the PKI file:voidsetNodeName(String name) Information provided by the PKI file:voidsetNodeValue(String value) Information provided by the PKI file:Methods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession
-
Method Details
-
getNodeId
String getNodeId()Information provided by the PKI file:
\brief Returns the ID of this node. \return QString, the ID of this node.- Returns:
- String Returns a String
-
getNodeName
String getNodeName()Information provided by the PKI file:
\brief Returns the name of this node. \return QString, the name of this node.- Returns:
- String Returns a String
-
getNodeValue
String getNodeValue()Information provided by the PKI file:
\brief Returns the value of this node. \return QString, the value of this node.- Returns:
- String Returns a String
-
getParentNode
TreeNode getParentNode()Information provided by the PKI file:
\brief Returns the parent node of this node. \return TreeNode, the TreeNode object of the parent node of this node.- Returns:
- TreeNode Returns a TreeNode
-
getChildCount
int getChildCount()Information provided by the PKI file:
\brief Returns the number of child nodes for this node. \return int, the number of child nodes for this node.- Returns:
- int Returns a int
-
getCheckType
ActivityCheckType getCheckType()Information provided by the PKI file:
\brief Returns the checktype of this node. \return int, the checktype for this node. Checktypes: eCheckTypeBlank = 0, eCheckTypeHalf = 1, eCheckTypeFull = 2 \remark Full is correct, blank is incorrect, and half means there are correct and incorrect children.- Returns:
- ActivityCheckType Returns a ActivityCheckType
-
getChildNodeAt
Information provided by the PKI file:
\brief Returns the child node at the specified index of this node. \param index, the index of the child node of interest. \return TreeNode, the child node at the specified index of this node.- Parameters:
index- Takes in a parameter of index- Returns:
- TreeNode Returns a TreeNode
-
getChildNodeBy
Information provided by the PKI file:
\brief Returns the child node with the specified ID of this node. \param ID, the ID of the child node of interest. \return TreeNode, the child node with the specified ID of this node.- Parameters:
id- Takes in a parameter of id- Returns:
- TreeNode Returns a TreeNode
-
getCheckOnlyTree
TreeNode getCheckOnlyTree()Information provided by the PKI file:
\brief Returns a tree with only half or full checktype nodes. \return TreeNode, the TreeNode object with only half or full checktype nodes.- Returns:
- TreeNode Returns a TreeNode
-
getIncorrectFeedback
String getIncorrectFeedback()Information provided by the PKI file:
\brief Returns the incorrect feedback of this node. \return QString, the incorrect feedback of this node.- Returns:
- String Returns a String
-
setIncorrectFeedback
Information provided by the PKI file:
\brief Sets the incorrect feedback for this node. \param feedbackStr, the incorrect feedback for this node.- Parameters:
feedbackStr- Takes in a parameter of feedbackStr
-
getLeafCount
int getLeafCount()Information provided by the PKI file:
\brief Returns the total number of leaf nodes for this node. \return int, the total number of leaf nodes for this node.- Returns:
- int Returns a int
-
getCheckLeafCount
int getCheckLeafCount()Information provided by the PKI file:
\brief Returns the number of full checktype leaf nodes. \return int, the number of full checktype leaf nodes.- Returns:
- int Returns a int
-
getTotalLeafPoints
int getTotalLeafPoints()Information provided by the PKI file:
\brief Returns the total points of leaf nodes. \return int, the total points of leaf nodes.- Returns:
- int Returns a int
-
isVariableEnabled
boolean isVariableEnabled()Information provided by the PKI file:
\brief Returns true if this node is variable enabled, otherwise false. \return bool, true if this node is variable enabled, otherwise false.- Returns:
- boolean Returns a boolean
-
getVariableName
String getVariableName()Information provided by the PKI file:
\brief Returns the variable name of this node. \return QString, the variable name of this node.- Returns:
- String Returns a String
-
getVariableToString
String getVariableToString()Information provided by the PKI file:
\brief Returns the variable name if the value type of the node is entire range, otherwise the value of this node. \return QString, the variable name if the value type of the node is entire range, otherwise the value of this node.- Returns:
- String Returns a String
-
setCheck
void setCheck(boolean bCheck) Information provided by the PKI file:
\brief Checks or unchecks this node. \param bCheck, true to check this node, false to uncheck it.- Parameters:
bCheck- Takes in a parameter of bCheck
-
getComparatorClass
ComparatorClass getComparatorClass()Information provided by the PKI file:
\brief Returns the comparator class. \return ComparatorClass, the comparator class. eCompClass_Ip = 0, eCompClass_Routing = 1, eCompClass_Acl = 2, eCompClass_Nat = 3, eCompClass_Physical = 4, eCompClass_Switching = 5, eCompClass_Connectivity = 6, eCompClass_Logical = 7, eCompClass_All = 8, eCompClass_Encircling_Head = 9, eCompClass_Encircling_Sub = 10- Returns:
- ComparatorClass Returns a ComparatorClass
-
setNodeName
Information provided by the PKI file:
\brief Sets the node of this node. \param name, the node of this node.- Parameters:
name- Takes in a parameter of name
-
setNodeValue
Information provided by the PKI file:
\brief Sets the value of this node. \param value, the value of this node.- Parameters:
value- Takes in a parameter of value
-
getLeafCountByComponent
Information provided by the PKI file:
\brief Returns the number of leaves with the specified component name (includes all children). \param component, the name of the component of interest. \return int, the number of leaves with the specified component name (includes all children).- Parameters:
component- Takes in a parameter of component- Returns:
- int Returns a int
-
getCheckLeafCountByComponent
Information provided by the PKI file:
\brief Returns the number of checked leaves with the specified component name (including all children). \param component, the name of the component of interest. \return int, the number of checked leaves with the specified component name (including all children).- Parameters:
component- Takes in a parameter of component- Returns:
- int Returns a int
-
getCheckLeafPointsByComponent
Information provided by the PKI file:
\brief Returns the total points of checked leaves with the specified component name (including all children). \param component, the name of the component of interest. \return int, the total points of checked leaves with the specified component name (including all children).- Parameters:
component- Takes in a parameter of component- Returns:
- int Returns a int
-
getTotalLeafPointsByComponent
Information provided by the PKI file:
\brief Returns the total points of leaves with the specified component name (including all children). \param component, the name of the component of interest. \return int, the total points of leaves with the specified component name (including all children).- Parameters:
component- Takes in a parameter of component- Returns:
- int Returns a int
-
getCheckLeafPoints
int getCheckLeafPoints()Information provided by the PKI file:
\brief Returns the total points of all nodes that have checks, including all children. \return int, the total points of all nodes that have checks, including all children.- Returns:
- int Returns a int
-
getCompPointPair
Information provided by the PKI file:
\brief Returns the component and points as a pair associated with only this node. There can be many components and points per node. \return pair<QString, QString>, the list of comma-separated components and list of comma-separated points.- Returns:
- Pair<String, String> Returns a Pair<String, String>
-
getChildNodeByFullId
Information provided by the PKI file:
\brief Returns the child node with the specified full ID of this node. \param ID, the full ID of the child node of interest. \return TreeNode, the child node with the specified full ID of this node.- Parameters:
id- Takes in a parameter of id- Returns:
- TreeNode Returns a TreeNode
-
addChildNode
TreeNode addChildNode(ComparatorClass classType, String nodeName, String nodeId, String nodeValue, boolean bVariableEnabled) Information provided by the PKI file:
\brief Create a new child node and add it to the tree \param classType, ComparatorClass eCompClass_Ip = 0, eCompClass_Routing = 1, eCompClass_Acl = 2, eCompClass_Nat = 3, eCompClass_Physical = 4, eCompClass_Switching = 5, eCompClass_Connectivity = 6, eCompClass_Logical = 7, eCompClass_All = 8, eCompClass_Encircling_Head = 9, eCompClass_Encircling_Sub = 10 \param nodeName, the name of the node. \param nodeId, the id of the node. \param nodeValue, the value of the node. \param bVariableEnabled, bool-true if variable is enabled and false if it's not on this node \return TreeNode, the child node that was newly created- Parameters:
classType- Takes in a parameter of classTypenodeName- Takes in a parameter of nodeNamenodeId- Takes in a parameter of nodeIdnodeValue- Takes in a parameter of nodeValuebVariableEnabled- Takes in a parameter of bVariableEnabled- Returns:
- TreeNode Returns a TreeNode
-